<!-- 核酸扫码 -->
<template>
	<view>
		<view class="" @click="scanCode()">扫码</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			scanCode() {
				uni.scanCode({
					success: function(res) {
						console.log('条码类型：' + res.scanType);
						console.log('条码内容：' + res.result);
					}
				});
			}
		}
	}
</script>

<style>

</style>
